import App from './App'
import Vue from 'vue'
import store from './store'

import uView from 'uview-ui';
Vue.use(uView)

uni.$u.config.unit = 'rpx'

import Share from './components/Share';
Vue.mixin(Share)

import { BASE_URL } from './service/config.js'
Vue.prototype.$BASEImageUrl = BASE_URL;

import { formatUtcString } from './utils/dateFormat.js'
Vue.prototype.$filters = {
	formatTime(value) {
		return formatUtcString(value);
	}
}

Vue.config.productionTip = false

import { login } from './service/request.js'
login()

App.mpType = 'app'
const app = new Vue({
    ...App,
		store
})
app.$mount()